guint flippable : 1;
guint inverted : 1;
- guint recalc_marks : 1;
guint slider_size_fixed : 1;
guint trough_click_forward : 1; /* trough click was on the forward side of slider */
gtk_widget_set_allocation (widget, allocation);
- priv->recalc_marks = TRUE;
-
+ gtk_range_calc_marks (range);
gtk_range_calc_layout (range);
if (gtk_widget_get_realized (widget))
draw_slider = TRUE;
}
- gtk_range_calc_marks (range);
- gtk_range_calc_layout (range);
-
/* Just to be confusing, we draw the trough for the whole
* range rectangle, not the trough rectangle (the trough
* rectangle is just for hit detection)
GdkRectangle slider;
gint i;
- if (!priv->recalc_marks)
- return;
-
- priv->recalc_marks = FALSE;
-
for (i = 0; i < priv->n_marks; i++)
{
gtk_range_compute_slider_position (range, priv->marks[i], &slider);
for (i = 0; i < n_values; i++)
priv->marks[i] = values[i];
- priv->recalc_marks = TRUE;
+ gtk_range_calc_marks (range);
}
gint